package com.dr.service;

import com.dr.exception.ServiceExcep;
import com.dr.pojo.Location;

import java.util.List;

/**
 * Created by tugou on 2017/5/3.
 */
public interface LocationService {

    /**
     * 获取所有驾校地址信息
     * @return
     */
    List<Location> getAllLocation(Location location);

    /**
     * 根据id获取驾校地址信息
     * @param id
     * @return
     */
    Location getLocationById(String id);

    /**
     * 保存驾校地址信息
     * @param location
     */
    void saveLocation(Location location) throws ServiceExcep;

    /**
     * 更新驾校地址
     * @param location
     */
    void updateLocation(Location location) throws ServiceExcep;

    /**
     * 删除驾校地址信息
     * @param id
     * @throws ServiceExcep
     */
    void deleteLocation(String id)throws ServiceExcep;

    /**
     * 提交驾校信息
     * @throws ServiceExcep
     */
    void commitLocation(Location location)throws  ServiceExcep;
}
